package com.uduemc.biso.core.feign.fallback;

import org.springframework.stereotype.Component;

import com.uduemc.biso.core.extities.center.Host;
import com.uduemc.biso.core.feign.HostFeign;
import com.uduemc.biso.core.utils.RestResult;

import feign.hystrix.FallbackFactory;

@Component
public class HostFeignFallback implements FallbackFactory<HostFeign> {

	@Override
	public HostFeign create(Throwable cause) {
		return new HostFeign() {

			@Override
			public RestResult findOne(Long id) {
				return null;
			}

			@Override
			public RestResult findOkByUserId(Long userId) {
				return null;
			}

			@Override
			public RestResult updateById(Host host) {
				return null;
			}

			@Override
			public RestResult updateByIdSelective(Host host) {
				return null;
			}
		};
	}

}
